import axios from '@/libs/request/axios'
// 获取放款规则配置数据
export const dealerFirstMortgageList = (params) => {
    return axios.request({
        url: `/case/dealerFirstMortgage/getDealerFirstMortgageList`,
        data: params,
        method: 'post'
    })
}

export const dealerFirstMortgageCityList = (params) => {
    return axios.request({
        url: `/case/dealerFirstMortgage/getDealerFirstMortgageCityList`,
        data: params,
        method: 'post'
    })
}

export const getAddressTree = (params) => {
    return axios.request({
        url: `/case/addressRegion/getAddressTree`,
        data: params,
        method: 'post'
    })
}

export const modifyIsFirstMortgage = (data,status) => {
    return axios.request({
        url: `/case/dealerFirstMortgage/modifyIsFirstMortgage`,
        params: {
            data:data,
            status:status,
        },
        method: 'post'
    })
}

export const modifyIsFirstMortgageList = (data,status) => {
    return axios.request({
        url: `/case/dealerFirstMortgage/modifyIsFirstMortgageList`,
        params: {
            data:data,
            status:status,
        },
        method: 'post'
    })
}
